package com.salesmanager.core.business.category.dao;


import com.salesmanager.core.business.category.model.Category;
import com.salesmanager.core.business.category.model.CategoryCriteria;
import com.salesmanager.core.business.generic.dao.SalesManagerEntityDao;
import com.salesmanager.core.business.generic.exception.ServiceException;

import java.util.List;
import java.util.Map;

public interface CategoryDao extends SalesManagerEntityDao<Long, Category> {

	List<Category> listByDepth(int depth);

    Category getByCode(String code) throws ServiceException;

    List<Category> listByLineage(String lineage);

    List<Category> list(CategoryCriteria criteria) throws ServiceException;

}
